package 类和对象课堂练习;

import java.util.Scanner;

public class Lianxi032111 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        Lianxi03211 f=new Lianxi03211();
        f.brand="小天才";
        f.color="白色的";
        System.out.println("小孔使用"+f.color+f.brand+"计算器");
        System.out.println("请输入两个数相加");
        int a=scan.nextInt();
        int b=scan.nextInt();
        f.jisuanqi(a,b);
        System.out.println("小左使用"+f.color+f.brand+"计算器");
        System.out.println("请输入两个数相乘");
        int c=scan.nextInt();
        int d=scan.nextInt();
        f.fudian(c,d);
        System.out.println("小马使用"+f.color+f.brand+"计算器");
        System.out.println("请输入一个数得出这个数立方");
        int e=scan.nextInt();
        f.lifang(e);
    }
}
